import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/common_list_page_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/common_list_page_entity.g.dart';

@JsonSerializable()
class CommonListPageEntity {
	late int code;
	late String msg;
	late CommonListPageData data;

	CommonListPageEntity();

	factory CommonListPageEntity.fromJson(Map<String, dynamic> json) => $CommonListPageEntityFromJson(json);

	Map<String, dynamic> toJson() => $CommonListPageEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CommonListPageData {
	late List<CommonListPageDataRecords> records;
	late int total;
	late int size;
	late int current;
	late int pages;

	CommonListPageData();

	factory CommonListPageData.fromJson(Map<String, dynamic> json) => $CommonListPageDataFromJson(json);

	Map<String, dynamic> toJson() => $CommonListPageDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CommonListPageDataRecords {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;

	CommonListPageDataRecords();

	factory CommonListPageDataRecords.fromJson(Map<String, dynamic> json) => $CommonListPageDataRecordsFromJson(json);

	Map<String, dynamic> toJson() => $CommonListPageDataRecordsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}